package cn.game.tanke.manger;

import cn.game.tanke.role.Boom;

import javax.swing.*;
import java.awt.*;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

public class BoomManager {
    private CopyOnWriteArrayList<Boom> booms = new CopyOnWriteArrayList<>();

    public void drawBooms(Graphics graphics, JPanel jPanel) {
        for (Boom boom : booms) {
            boom.drawRole(graphics, jPanel);
        }
    }
}
